//
//  EXT+UIImageView.swift
//  CZVVeiBo
//
//  Created by smile on 2017/7/30.
//  Copyright © 2017年 itcast. All rights reserved.
//

import UIKit


extension UIImageView{
    // 图片名称
    convenience init(imgName: String){
        self.init(image: UIImage(named: imgName))
    }
    
    
    
    // 对sd进行封装
    func cz_setImage(urlString: String?, placeholderImgName: String?){
        self.sd_setImage(with: URL(string: urlString ?? ""), placeholderImage: UIImage(named:placeholderImgName ?? ""))
    }

}
